<?php
class Const_Code
{
	// 基本状态码
	const SUCCESS = '000000';
	const FAIL = '000001';
	const ERROR = '000002';
	const AUTH = '000003';

	// 登录状态码
	const LOGIN_FAIL = 'XL0001';
	const LOGIN_PARAM_ERROR = 'XL0021';
	const LOGIN_CODE_ERROR = 'XL0023';

	// 系统状态码
	const SYSTEM_NOT_FOUND = 'XS0000';
	const UPDATE_SYSTEM_FAIL = 'XS0001';
	const SYSTEM_PARAM_ERROR = 'XS0021';
	const SYSTEM_FORMAT_ERROR = 'XS0022';

	// 空间状态码
	const SPACE_NOT_FOUND = '100000';
	const ADD_SPACE_FAIL = '100001';
	const UPDATE_SPACE_FAIL = '100002';
	const DELETE_SPACE_FAIL = '100003';
	const ADD_SPACE_EXISTS = '100011';
	const UPDATE_SPACE_EXISTS = '100012';
	const SPACE_PARAM_ERROR = '100021';
	const SPACE_FORMAT_ERROR = '100022';

	// 模块状态码
	const MODULE_NOT_FOUND = '200000';
	const ADD_MODULE_FAIL = '200001';
	const UPDATE_MODULE_FAIL = '200002';
	const DELETE_MODULE_FAIL = '200003';
	const ADD_MODULE_EXISTS = '200011';
	const UPDATE_MODULE_EXISTS = '200012';
	const MODULE_PARAM_ERROR = '200021';
	const MODULE_FORMAT_ERROR = '200022';

	// 接口状态码
	const ITEM_NOT_FOUND = '300000';
	const ADD_ITEM_FAIL = '300001';
	const UPDATE_ITEM_FAIL = '300002';
	const DELETE_ITEM_FAIL = '300003';
	const ADD_ITEM_EXISTS = '300011';
	const UPDATE_ITEM_EXISTS = '300012';
	const ITEM_PARAM_ERROR = '300021';
	const ITEM_FORMAT_ERROR = '300022';

	// 用例状态码
	const CASE_NOT_FOUND = '400000';
	const ADD_CASE_FAIL = '400001';
	const UPDATE_CASE_FAIL = '400002';
	const DELETE_CASE_FAIL = '400003';
	const ADD_CASE_EXISTS = '400011';
	const UPDATE_CASE_EXISTS = '400012';
	const CASE_PARAM_ERROR = '400021';
	const CASE_FORMAT_ERROR = '400022';

	// 步骤状态码
	const STEP_NOT_FOUND = '500000';
	const ADD_STEP_FAIL = '500001';
	const UPDATE_STEP_FAIL = '500002';
	const DELETE_STEP_FAIL = '500003';
	const ADD_STEP_EXISTS = '500011';
	const UPDATE_STEP_EXISTS = '500012';
	const STEP_PARAM_ERROR = '500021';
	const STEP_FORMAT_ERROR = '500022';

	// 环境状态码
	const ENVIRONMENT_NOT_FOUND = '600000';
	const ADD_ENVIRONMENT_FAIL = '600001';
	const UPDATE_ENVIRONMENT_FAIL = '600002';
	const DELETE_ENVIRONMENT_FAIL = '600003';
	const ADD_ENVIRONMENT_EXISTS = '600011';
	const UPDATE_ENVIRONMENT_EXISTS = '600012';
	const ENVIRONMENT_PARAM_ERROR = '600021';
	const ENVIRONMENT_FORMAT_ERROR = '600022';

	// 参数状态码
	const PARAM_NOT_FOUND = '700000';
	const ADD_PARAM_FAIL = '700001';
	const UPDATE_PARAM_FAIL = '700002';
	const DELETE_PARAM_FAIL = '700003';
	const ADD_PARAM_EXISTS = '700011';
	const UPDATE_PARAM_EXISTS = '700012';
	const PARAM_PARAM_ERROR = '700021';
	const PARAM_FORMAT_ERROR = '700022';

	// 数据源状态码
	const DATA_NOT_FOUND = '800000';
	const ADD_DATA_FAIL = '800001';
	const UPDATE_DATA_FAIL = '800002';
	const DELETE_DATA_FAIL = '800003';
	const ADD_DATA_EXISTS = '800011';
	const UPDATE_DATA_EXISTS = '800012';
	const DATA_PARAM_ERROR = '800021';
	const DATA_FORMAT_ERROR = '800022';

	// 任务状态码
	const TASK_NOT_FOUND = '900000';
	const ADD_TASK_FAIL = '900001';
	const UPDATE_TASK_FAIL = '900002';
	const DELETE_TASK_FAIL = '900003';
	const ADD_TASK_EXISTS = '900011';
	const UPDATE_TASK_EXISTS = '900012';
	const TASK_PARAM_ERROR = '900021';
	const TASK_FORMAT_ERROR = '900022';

	// 作业状态码
	const JOB_NOT_FOUND = '1X0000';
	const ADD_JOB_FAIL = '1X0001';
	const UPDATE_JOB_FAIL = '1X0002';
	const DELETE_JOB_FAIL = '1X0003';
	const ADD_JOB_EXISTS = '1X0011';
	const UPDATE_JOB_EXISTS = '1X0012';
	const JOB_PARAM_ERROR = '1X0021';
	const JOB_FORMAT_ERROR = '1X0022';

	// 报告状态码
	const REPORT_NOT_FOUND = '110000';
	const ADD_REPORT_FAIL = '110001';
	const UPDATE_REPORT_FAIL = '110002';
	const DELETE_REPORT_FAIL = '110003';
	const ADD_REPORT_EXISTS = '110011';
	const UPDATE_REPORT_EXISTS = '110012';
	const REPORT_PARAM_ERROR = '110021';
	const REPORT_FORMAT_ERROR = '110022';

	// 应用状态码
	const APPLICATION_NOT_FOUND = '120000';
	const ADD_APPLICATION_FAIL = '120001';
	const UPDATE_APPLICATION_FAIL = '120002';
	const DELETE_APPLICATION_FAIL = '120003';
	const ADD_APPLICATION_EXISTS = '120011';
	const UPDATE_APPLICATION_EXISTS = '120012';
	const APPLICATION_PARAM_ERROR = '120021';
	const APPLICATION_FORMAT_ERROR = '120022';

	// 第三方状态码
	const THIRD_NOT_FOUND = '130000';
	const ADD_THIRD_FAIL = '130001';
	const UPDATE_THIRD_FAIL = '130002';
	const DELETE_THIRD_FAIL = '130003';
	const ADD_THIRD_EXISTS = '130011';
	const UPDATE_THIRD_EXISTS = '130012';
	const THIRD_PARAM_ERROR = '130021';
	const THIRD_FORMAT_ERROR = '130022';

	// 用户状态码
	const USER_NOT_FOUND = '990000';
	const ADD_USER_FAIL = '990001';
	const UPDATE_USER_FAIL = '990002';
	const DELETE_USER_FAIL = '990003';
	const ADD_USER_EXISTS = '990011';
	const UPDATE_USER_EXISTS = '990012';
	const USER_PARAM_ERROR = '990021';
	const USER_FORMAT_ERROR = '990022';
	const USER_CHECK_ERROR = '990023';
}
